package com.findyou.service.impl;

import com.findyou.dao.ItemDao;
import com.findyou.pojo.Item;
import com.findyou.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: ItemServiceImpl
 * @Author 贾金博
 * @Package com.findyou.service.impl
 * @Date 2025/6/8 下午1:07
 * @description: 文章逻辑层实现类
 */
@Service
public class ItemServiceImpl implements ItemService {

    @Autowired
    private ItemDao itemDao;


    /**
     * 根据文章类型 type 来查询文章集合
     * @param type
     * @return
     */
    @Override
    public List<Item> findItemsByType(int type) {
        return itemDao.findItemsByType(type);
    }

}
